﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;

// Class representing 1 row of the Steps table (DB_version 3) 

namespace StoveTop.Models
{
	class Step
	{
		private int _id;
		private int _stepNum;
		private string _instructions;
		private int _timer;


		// Constructors
		public Step() {
		}
		public Step(int id, int stepNum, string instructions, int timer){
			_id = id;
			_stepNum = stepNum;
			_instructions = instructions;
			_timer = timer;
		}

		// Setters
		public void SetId(int id) {
			_id = id;
		}
		public void SetStepNum(int stepNum) {
			_stepNum = stepNum;
		}
		public void SetInstructions (string instructions) {
			_instructions = instructions;
		}
		public void SetTimer (int timer) {
			_timer = timer;
		}
		// Getters
		public int GetId() {
			return _id;
		}
		public int GetStepNum () {
			return _stepNum;
		}
		public string GetInstructions () {
			return _instructions;
		}
		public int GetTimer() {
			return _timer;
		}

		// Other Useful Methods
		public override string ToString() {
			return "Step [id=" + _id + " stepNum=" + _stepNum + " instructions = " + _instructions + " timer = " + _timer + "]";
		}
	}
}